package com.ruoyi.supplier.service;

import java.util.List;
import com.ruoyi.supplier.domain.TbPurchase;
import com.ruoyi.supplier.domain.TbPurchaseDTO;

/**
 * 采购Service接口
 * 
 * @author ruoyi
 * @date 2021-02-16
 */
public interface ITbPurchaseService 
{
    /**
     * 查询采购
     * 
     * @param id 采购ID
     * @return 采购
     */
    public TbPurchase selectTbPurchaseById(Long id);

    /**
     * 查询采购列表
     * 
     * @param tbPurchase 采购
     * @return 采购集合
     */
    public List<TbPurchase> selectTbPurchaseList(TbPurchase tbPurchase);

    /**
     * 新增采购
     * 
     * @param tbPurchase 采购
     * @return 结果
     */
    public int insertTbPurchase(TbPurchase tbPurchase);

    /**
     * 修改采购
     * 
     * @param tbPurchase 采购
     * @return 结果
     */
    public int updateTbPurchase(TbPurchase tbPurchase);

    /**
     * 批量删除采购
     * 
     * @param ids 需要删除的采购ID
     * @return 结果
     */
    public int deleteTbPurchaseByIds(Long[] ids);

    /**
     * 删除采购信息
     * 
     * @param id 采购ID
     * @return 结果
     */
    public int deleteTbPurchaseById(Long id);

    List<TbPurchaseDTO> selectTbPurchaseDetailList(TbPurchaseDTO tbPurchaseDTO);

    /**
     * 查询当前最大采购批次号
     * @return
     */
    String selectNumber();
}
